package com.example.easybuy.mapper;


import com.example.easybuy.pojo.EasybuyNews;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 张子晨
 * @since 2021-03-12
 */
public interface EasybuyNewsMapper {

    //查询最新的5条新闻
    public List<EasybuyNews> newsLatest();

    //分页查询所有新闻
    public List<EasybuyNews> newsAll();

    //根据id查询新闻
    public EasybuyNews getNewsById(int id);
}
